package com.dingding.study.Event.service;

public interface EventCenter {

    public static EventCenter DEFAULT_EVENT_CENTER = new DefaultEventCenter(".DEFAULT");

    <T extends Event> void publish(T event);

    <T extends EventListener<?>> void subscribe(T listener);

}
